﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Map.Controllers
{
    public class AdminLoginBaseController : Controller
    {
        // GET: AdminLoginBase
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            var userName = Session["AdminUser"] as string;
            if (string.IsNullOrEmpty(userName))
            {
                filterContext.Result = RedirectToRoute("Default", new { Controller = "Login", Action = "Index" });
            }
            base.OnActionExecuting(filterContext);
        }
    }
}